﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Left.aspx.cs" Inherits="CRM.Web.Left" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/leftpage.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/dtree.css" %>"  rel="stylesheet" type="text/css" />
    <style type="text/css">
    html
    {
        
    }
    body
    {        
        background-image:url(<%= base.ResourcesPath %>images/left_body_bg.gif);   
        background-repeat: no-repeat;  
        background-color: #94a6d6; 
        padding-top: 2px;      
        height: 100%;
        
    }
    .normal
    {
        cursor: pointer;
        cursor:hand;        
    } 
    #leftDiv
    {
        overflow-y: scroll;          
    }  
    #leftDivMain
    {
        width: 173px;
    }
    #divSoftPhoneStatus
    {
        display: none;
    }
    
    </style>
    <script type="text/javascript" src="<%= base.ResourcesPath %>JS/dtree.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js" ></script>
    <script type="text/javascript" >
        function SHLeftTree() {
            parent.frameTop.SHwin();
        }
        $(document).ready(function() {
            $('#leftDiv').height($(window).height());
            //$('#leftDiv').width($(window).width()-15);

            $('.tLeftMenuLevelOne').bind("click", function() {
                $('.tLeftMenuLevelOne').removeClass("tLeftMenuLevelOneSelected");
                var id = $(this).attr("id").replace('LevelOne_', '');
                if ($('#LevelTwo_' + id + ':hidden').size() > 0) {
                    $('.divLeftMenuLevelTwo').hide();
                    $('#LevelTwo_' + id).show();
                    $(this).addClass("tLeftMenuLevelOneSelected");
                }
                else {
                    $('#LevelTwo_' + id).hide();
                    $(this).removeClass("tLeftMenuLevelOneSelected");
                }
            });
            $('#tLeftTitle').toggle(function() {
                $('#divSoftPhoneStatus').show();
            }, function() {
                $('#divSoftPhoneStatus').hide();
            });

        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="left_bg" id="leftDiv">
        <div id="leftDivMain">
        <asp:Panel ID="pSoftPhoneStatus" runat="server" CssClass="tLeftDiv" >
            <table border="0" cellpadding="0" cellspacing="0" id="tLeftTitle">
                <tr>
                    <td class="titleleft">
                        <img src="<%= base.ResourcesPath %>Images/Left/left_title_left.gif" alt="" />
                    </td>
                    <td class="titlemiddle">
                        <div class="lefttitle">
                            <div>
                                <asp:Label ID="lblTitle" runat="server">用户信息</asp:Label></div>
                        </div>
                    </td>
                    <td class="titleright">
                        <img src="<%= base.ResourcesPath %>Images/Left/left_title_right.gif" alt="" />
                    </td>
                </tr>
            </table>
            <div class="divSoftPhoneStatus" id="divSoftPhoneStatus">
                <div><span>登录名：</span><asp:Label id="lblLoginName" runat="server"></asp:Label></div> 
                <div><span>姓　名：</span><asp:Label id="lblUserName" runat="server"></asp:Label></div>  
                <div><span>工　号：</span><asp:Label id="lblAgentID" runat="server"></asp:Label></div>  
                <div><span>分　机：</span><asp:Label id="lblExt" runat="server"></asp:Label></div>   
                <div><span>部　门：</span><asp:Label id="lblDepartmentName" runat="server"></asp:Label></div> 
            </div>
        </asp:Panel>
            <div id="divLeftMenuTitle">
                <table border="0" cellpadding="0" cellspacing="0" class="tLeftMenuTitle">
                    <tr>
                        <td class="titleleft">
                        </td>
                        <td class="titlemiddle">
                            <div class="lefttitle">
                                <div>
                                    <asp:Label ID="Label1" runat="server">菜单选项</asp:Label></div>
                            </div>
                        </td>
                        <td class="titleright">
                        </td>
                    </tr>
                </table>
                <div id="divLeftMenuBody" runat="server">                
                </div>                
            </div>
        <div id="leftTree">        
        </div>
        </div>
    </div>
    </form>
</body>
</html>
